//
//  AlertOfLogin.m
//  UI14_UIAlertView
//
//  Created by Scott on 16/3/28.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "AlertOfLogin.h"

@interface AlertOfLogin ()

@end

@implementation AlertOfLogin



- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
//    self.view.backgroundColor = [UIColor clearColor];

    [self createActions];
    
}

- (void)createActions {
    
    UIAlertAction *action1 = [UIAlertAction actionWithTitle:@"Confirm" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        
        // delegate 回调出去.
        if ([self.delegate respondsToSelector:@selector(clickConfirmButton:)]) {
            
            
            [self.delegate clickConfirmButton:self];
        }
    }];
    
    [self addAction:action1];
    
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
